package com.stream;

import java.util.Random;
import java.util.stream.IntStream;

public class FindDemo {
	public static void main(String[] args) {
		int num = new Random().ints().filter(i -> i>99 && i <1000).limit(10).findFirst().orElse(0);
		System.out.println(num);
	}
}
